import React, { PureComponent } from "react"
import { withRouter } from "../hoc"

export class Detail extends PureComponent {
    render() {
        const { params } = this.props.router
        console.log(params)

        return (
            <div>
                <h2>Detail Page ID:{params.id}</h2>
            </div>
        )
    }
}

export default withRouter(Detail)
